<table border="1" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse; table-layout:fixed;word-wrap:break-word;" width="100%" class="table_common">
    <tr>
        <th rowspan="2">区域</th>
        <th rowspan="2">大区</th>
        <th rowspan="2">小区</th>
        <th rowspan="2">省份</th>
        <th rowspan="2">城市</th>
        <th rowspan="2">专营店</th>
        <th rowspan="2">专营店编码</th>
        <th rowspan="2">所属双月</th>
        <th rowspan="2">双月额度</th>
        <th colspan="17">项目活动</th>
   </tr>
   <tr>
        <th>项目编号</th>
        <th>项目名称</th>
        <th>标准动作</th>
        <th>活动类型</th>
        <th>线上广宣流水号</th>
        <th>媒体类型（一级）</th>
        <th>媒体类型（二级）</th>
        <th>媒体地址/名称</th>
        <th>投放规格</th>
        <th>发布频次</th>
        <th>发布时间段</th>
        <th>预算申请费用</th>
        <th>预算审核结果</th>
        <th>预算审核费用</th>
        <th>结算申请费用</th>
        <th>结算审核结果</th>
        <th>结算审核费用</th>
    </tr>
    <?php
    foreach($procIds as $procId){
    	$procData = isset($procList[$procId]) ? $procList[$procId] : array();
		$storeData = isset($allStoreList[$procData['storeId']]) ? $allStoreList[$procData['storeId']] : array();
    ?>
	    <?php
	    if(isset($pGxGroupList[$procId])){
	    	foreach($pGxGroupList[$procId] as $v){
	    		$projectData = isset($projectList[$v['projectId']]) ? $projectList[$v['projectId']] : array();
	    ?>
	    <tr>
	    	<td><?=$storeData['area'];?></td>
	        <td><?=$storeData['region'];?></td>
	        <td><?=$storeData['spsarea'];?></td>
	        <td><?=$storeData['province'];?></td>
	        <td><?=$storeData['city'];?></td>
	        <td><?=$storeData['storeName'];?></td>
	        <td><?=$storeData['coding'];?></td>
	        <td><?=$procData['timeUnitStr'];?></td>
	        <td><?=$procData['fixedMoney'];?></td>
	    	<td><?=$v['projectId']?></td>
	    	<td><?=$projectData['projectName']?></td>
	    	<td><?=$projectData['actionTypeStr']?></td>
	    	<td><?=$projectData['eventTypeStr'].'-'.$projectData['eventClassStr']?></td>
	    	<td><?=$v['id']?></td>
	    	<td><?=$v['mediaType1Str'];?></td>
	    	<td><?=$v['mediaType2Str'];?></td>
	    	<td><?=$v['mediaName']?></td>
	    	<td><?=$v['mediaSizeStr']?></td>
	    	<td><?=$v['frequency']?></td>
	    	<td><?=$v['startTime']?>至<?=$v['endTime']?></td>
	    	<td><?=$v['budgetApply']?></td>
	    	<td><?=$v['budgetAuditStr']?></td>
	    	<td><?=$v['budgetAudit']?></td>
	    	<td><?=$v['settleApply']?></td>
	    	<td><?=$v['settleAuditStr']?></td>
	    	<td><?=$v['settleAudit']?></td>
	    </tr>
	    <?php }}?>
    <?php }?>
</table>